package com.specialized.passenger.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.specialized.common.core.annotation.Excel;
import com.specialized.common.core.web.domain.BaseEntity;

/**
 * 聊天记录对象 chat_msg
 *
 * @author djh
 * @date 2024-07-19
 */
public class ChatMsg extends BaseEntity
{
    private static final long serialVersionUID=1L;

    /** 聊天ID */
    private Long chatId;

    /** 聊天key */
    @Excel(name = "聊天key")
    private String msgKey;

    /** 聊天信息 */
    @Excel(name = "聊天信息")
    private String chatMsg;

    /** 发送人 */
    @Excel(name = "发送人")
    private Long sendId;

    /** 收信人 */
    @Excel(name = "收信人")
    private Long receiveId;

    /** 状态 */
    @Excel(name = "状态")
    private Long readState;

    public void setChatId(Long chatId)
    {
        this.chatId = chatId;
    }

    public Long getChatId()
    {
        return chatId;
    }
    public void setMsgKey(String msgKey)
    {
        this.msgKey = msgKey;
    }

    public String getMsgKey()
    {
        return msgKey;
    }
    public void setChatMsg(String chatMsg)
    {
        this.chatMsg = chatMsg;
    }

    public String getChatMsg()
    {
        return chatMsg;
    }
    public void setSendId(Long sendId)
    {
        this.sendId = sendId;
    }

    public Long getSendId()
    {
        return sendId;
    }
    public void setReceiveId(Long receiveId)
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId()
    {
        return receiveId;
    }
    public void setReadState(Long readState)
    {
        this.readState = readState;
    }

    public Long getReadState()
    {
        return readState;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("chatId",getChatId())
                .append("createTime",getCreateTime())
                .append("msgKey",getMsgKey())
                .append("chatMsg",getChatMsg())
                .append("sendId",getSendId())
                .append("receiveId",getReceiveId())
                .append("readState",getReadState())
                .toString();
    }
}
